import React from 'react'
import { useHistory } from 'react-router-dom'

export default function Comment() {
  const history = useHistory()

  const jump = () => {
    history.push('/') // 路由跳转
  }
  return (
    <div>
      Comment 评论页
      <button onClick={jump}>首页</button>
    </div>
  )
}
